{include file=$header_start}
{strip}
<script src="{$siteroot}/includes/js/myaccount.js" type="text/javascript"></script>
{/strip}
{include file=$header_end}

 <div class="contain">
 
      {include file=$left_menu}
      
      <div class="right_contain">
        
         <div class="heading_box">{if $smarty.get.photoid neq ''} Edit {else}Upload{/if} Work Photo <a href="{$siteroot}/admin/home.php?q=tradesmanuserworkphoto&id={$smarty.get.id}" class="rF" style="color:#FFF" >Back</a></div>
         <div class="whitebox">
         <!--Message Div Start-->
         {if $msg}
         <div class="masg_div">
           {$msg}
         </div>
         {/if}
         <!--Message Div End-->
         
       <form method="post" action="" {if $userPhotoDetArray.photo_id neq''} name="frmMngWorkPhotoEdit" id="frmMngWorkPhotoEdit" {else} name="frmMngWorkPhoto" id="frmMngWorkPhoto" {/if} enctype="multipart/form-data">                
        <input type="hidden" id="photo_id" name="photo_id" value="{$userPhotoDetArray.photo_id}"  />
         <div style="min-height:250px;">
          <!--Form Contain start-->
           
           <div class="form_fieldbox">
             <dl>
              <dt>Title:</dt>
              <dd><input type="text" class="input" name="title" id="title" value="{if $userPhotoDetArray.title}{$userPhotoDetArray.title|stripslashes}{else}{$smarty.post.title}{/if}"/></dd>
              <div class="clear"></div>
             </dl>
             {if $userPhotoDetArray.image}
             <dl>
              <dt>Previous Photo:</dt>
              <dd><img src="{$siteroot}/includes/image.php?width=150&amp;height=130&amp;image={$siteroot}/uploads/tradesmanjobs/{$userPhotoDetArray.image}" title="workphoto" alt="workphoto"/></dd>
              <div class="clear"></div>
             </dl>
             {/if}
             <dl>
              <dt>Work Photo:</dt>
              <dd><input type="file" id="image" name="image"  />     </dd>
              <div class="clear"></div>
             </dl>
             
            </div>
            
            <!--Form Contain end--> 
          
           <!--Button here start-->
           <div>
            <span><input type="submit" class="admin_btn" value="Submit" name="adduser_btn" id="adduser_btn" /></span>
            <span><input type="button" class="admin_btn" value="Cancel" onclick="window.location='{$siteroot}/admin/home.php?q=tradesmanuserworkphoto&id={$smarty.get.id}&page={$smarty.get.page}';"/></span>
           </div>
            <!--Button here end-->
  
         </div>
         </form>
         
         </div>
        </div>
      
      
      <!--right_contain end-->
      <div class="clear"></div>
    </div>
    
{include file=$footer}